package main

import "fmt"

func main() {
	//浮点数 = 符号位+指数位+尾数位
	var price float32 = 18.64
	var num1 float32 = 79456465.26
	var num2 float64 = 79456465596.26
	fmt.Println("price=", price, "num1=", num1, "num2=", num2)
	//float64的精度高于float32

	//默认声明是float64
	var num3 = 656.3
	fmt.Printf("num3的类型%T\n", num3)

}
